package com.refsahl.wicket;

import com.refsahl.biz.Treningsokt;
import com.refsahl.ejbclient.TreningsoktDelegate;
import java.util.List;
import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.form.Button;
import org.apache.wicket.markup.html.WebPage;

/**
 * Homepage
 */
public class HomePage extends WebPage {

    private static final long serialVersionUID = 1L;

    // TODO Add any page properties or variables here
    /**
     * Constructor that is invoked when page is invoked without a session.
     *
     * @param parameters
     *            Page parameters
     */
    public HomePage(final PageParameters parameters) {
        List<Treningsokt> allTreningsokter = TreningsoktDelegate.getAllTreningsokter();

        add(new Button("button"));
        add(new Label("message", allTreningsokter.toString()));

    }
}
